<input type="text" {{flatattrs}} /> 
<script type="text/javascript" defer="defer">
<!--
    $(function() {
        $("#{{attrs.id}}").datepicker({ dateFormat: '{{format}}',
                                        duration: '{{duration}}' 
                                      });
    });

-->
</script>